<?php
/**
 * @copyright	Copyright (C) 2008 Bideew. All rights reserved.
 * @license		GNU/GPL
* This file is part of Bideew.

* Bideew is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* any later version.

* Bideew is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.

* You should have received a copy of the GNU General Public License
* along with Bideew; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
// Pas d'acces direct
defined('fADMIN') or die( 'Restricted access' );
?>


<h1>Actions possibles</h1>
<ul>
	<li><a href="<?php echo $URLs."&amp;Action=Liste"; ?>">Liste des utilisateurs</a></li>
	<li><a href="<?php echo $URLs."&amp;Action=Ajout"; ?>">Ajout d'un utilisateur</a></li>
</ul>
</fieldset>

<?php
switch(gACTION) {
case "Liste":
	echo "<fieldset><legend>Liste des membres</legend>\n";
		include("liste.php");
	echo "</fieldset>";
	break;
case "Ajout":
	echo "<fieldset><legend>Ajout d'un utilisateur</legend>\n";
		include("ajout.php");
	echo "</fieldset>";
	break;
case "Modification":
	if (is_numeric(gID)) {
		echo "<fieldset><legend>Modification d'un utilisateur</legend>\n";
			include("modification.php");
		echo "</fieldset>";
	}
	break;
case "Suppression":
	if (is_numeric(gID)) {
		echo "<fieldset><legend>Suppression d'un utilisateur</legend>\n";
			include("suppression.php");
		echo "</fieldset>";
	}
	break;
}
?>